import 'package:boss/models/store_area.dart';
import 'package:flutter/material.dart';

class AreaDetailProvider extends ChangeNotifier {
  StoreArea storeArea = StoreArea.fromJson({});
  bool get isUpdate => storeArea.areaId != null;

  AreaDetailProvider({StoreArea storeArea}) {
    if (storeArea != null) this.storeArea = storeArea;
  }

  setStoreAreaName(String name) {
    storeArea.areaName = name;
  }
}
